/*
 * @Author: cl
 * @Description: 路由
 * @Date: 2023-05-15 11:22:01
 * @LastEditTime: 2023-06-06 16:46:16
 * @FilePath: \vue3scaffold\src\router\index.ts
 * @LastEditors: cl
 */
import { createRouter, createWebHashHistory, createWebHistory } from "vue-router";
import { App } from "vue";
import routes from "./router";
import  routers  from "@/router/autoload";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [...routers, ...routes],
});

export default router;


export function setupRouter(app: App) {
  console.log(router);
  console.log(import.meta.env.VITE_SOME_KEY);
  app.use(router);
}
